﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="Summary.aspx.cs" Inherits="Attendance_Summary" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <table  align="center" style="width: 522px">
            <tr>
                <td>
                    开始时间：<asp:TextBox ID="txtStartTime" runat="server"></asp:TextBox></td>
                <td colspan="2">
                    结束时间：<asp:TextBox ID="txtEndTime" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="height: 18px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
                        ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator></td>
                <td colspan="2" style="height: 18px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
                        ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>
                    <asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True" />按迟到次序排序</td>
                <td colspan="2" rowspan="5">
                </td>
            </tr>
            <tr>
                <td style="height: 21px">
                    <asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True" />按早迟顺序排序</td>
            </tr>
            <tr>
                <td>
                    <asp:RadioButton ID="RadioButton3" runat="server" AutoPostBack="True" />按缺勤次序排序</td>
            </tr>
            <tr>
                <td>
                    <asp:RadioButton ID="rdoAscendList" runat="server" AutoPostBack="True" />降序</td>
            </tr>
            <tr>
                <td>
                    <asp:RadioButton ID="rdoDscendList" runat="server" AutoPostBack="True" />升序</td>
            </tr>
            <tr>
                <td colspan="3" style="height: 22px">
                    <asp:Panel ID="Panel1" runat="server" Height="29px" Width="484px">
                        请选择要查看的类型：<asp:DropDownList ID="cmbDeptList" runat="server" Width="148px" OnSelectedIndexChanged="cmbDeptList_SelectedIndexChanged">
                        </asp:DropDownList>
                    </asp:Panel>
                    <asp:Button ID="btnSearch" runat="server" Text="显示结果" OnClick="btnSearch_Click" /></td>
            </tr>
            <tr>
                <td colspan="3" rowspan="2">
                    <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                        GridLines="Vertical" Width="513px" OnRowCommand="grdResult_RowCommand">
                        <FooterStyle BackColor="#CCCC99" />
                        <Columns>
                            <asp:BoundField HeaderText="员工姓名" DataField="EmployeeName" />
                            <asp:BoundField HeaderText="迟到次数" DataField="LateCount" />
                            <asp:BoundField HeaderText="早退次数" DataField="EarlyCount" />
                            <asp:BoundField HeaderText="缺勤次数" DataField="AbsenceCount" />
                            <asp:HyperLinkField DataNavigateUrlFields="EmployeeID" DataNavigateUrlFormatString="ShowAttendDetail.aspx?id={0}"
                                HeaderText="详细情况" Text="详细情况……" />
                        </Columns>
                        <RowStyle BackColor="#F7F7DE" />
                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
            </tr>
        </table>
    
    </div>
</asp:Content >